{% include 'include/head.html' %}
<!-- Page Container START -->
            <div class="page-container">
                <!-- Content Wrapper START -->
                <div class="main-content">
                    <div class="page-header">
                        <h2 class="header-title">导入基本信息</h2>
                        <div class="header-sub-title">
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-body">
                            <h4>上传销售信息</h4>
                            <div class="m-t-25">
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-row">
                                            <div class="form-group m-b-15 col-md-6">
                                                <label>SKU上传</label>
                                                <label>示例模板<a href="http://81.70.119.138/sku.xlsx">下载</a></label>
                                            </div>
                                        </div>
                                        <form method="post" enctype="multipart/form-data">
                                            <div class="m-b-15">
                                                {% csrf_token %}
                                                <select class="select2" name="brand" id="stinfo">
                                                    {% for item in brand %}
                                                        <option value="{{ item.id }}">{{ item.name }}</option>
                                                    {% endfor %}
                                                </select>
                                            <div class="custom-file">
                                                <input type="file" name="sku" class="btn btn-secondary btn-tone m-r-5"/>
                                                <button class="btn btn-secondary btn-tone m-r-5" type="submit">提交</button>
                                            </div>
                                            </div>
                                        </form>

                                    </div>
                                </div>
                            </div>
                            <div class="m-t-25">

                            </div>
                        </div>
                    </div>
                </div>
                <!-- Content Wrapper END -->

                <!-- Footer START -->
                <footer class="footer">
                    <div class="footer-content">
                        <p class="m-b-0">Copyright © 2019 Theme_Nate. All rights reserved.</p>
                        <span>
                            <a href="" class="text-gray m-r-15">Term &amp; Conditions</a>
                            <a href="" class="text-gray">Privacy &amp; Policy</a>
                        </span>
                    </div>
                </footer>
                <!-- Footer END -->

            </div>
            <!-- Page Container END -->

        </div>
    </div>


    <!-- Core Vendors JS -->
    <script src="/static/assets/js/vendors.min.js"></script>

    <!-- page js -->
    <script src="/static/assets/vendors/datatables/jquery.dataTables.min.js"></script>
    <script src="/static/assets/vendors/datatables/dataTables.bootstrap.min.js"></script>
    <script src="/static/assets/js/pages/datatables.js"></script>
    <script src="/static/assets/vendors/select2/select2.min.js"></script>
    <script src="/static/excel/xlsx.core.min.js"></script>
    <!-- Core JS -->
    <script src="/static/assets/js/app.min.js"></script>

    <script>
        function openBrowse(){
            $("#sale").click();
            $("#save").attr('disabled',true)
            var ie = navigator.appName = "Microsoft Internet Explorer"?true:false;
            if(ie)
            {
                {#document.getElementById("fileName").value = document.getElementById("file").value;#}
            }else{
                var a = document.createEvent("MouseEvents");
                a.initEvent("click",true,true);
                document.getElementById("sale").dispatchEvent(a);
            }
        }
        function openBrowse1(){
            $("#file1").click();
            var ie = navigator.appName = "Microsoft Internet Explorer"?true:false;
            if(ie)
            {
                {#document.getElementById("fileName").value = document.getElementById("file").value;#}
            }else{
                var a = document.createEvent("MouseEvents");
                a.initEvent("click",true,true);
                document.getElementById("file1").dispatchEvent(a);
            }
        }
    </script>

</body>

</html>